import axios from "axios"
const doMain="https://www.taifa5588.com/";

const order = {
  state: {
  
  },
  getters: {

  },
  mutations: {

  },
  actions: {
    //   获取 设备 数据
    async getData(context, obj) {
      // 坐标
      let longitude = obj.longitude;
      let latitude = obj.latitude;
      let products = axios.post(doMain+"/getMainImgs", {
        longitude: longitude,
        latitude: latitude
      }).then(body=>{
          console.log(body.data)
          return body.data
      })
      return products
    }
  }
}

export default order;
